<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<nav class="navbar navbar-inverse" role="navigation">
	  <div class="container-fluid">
	    <!-- Brand and toggle get grouped for better mobile display -->
	    <div class="navbar-header">
	      <a class="navbar-brand" href="index.jsp">
	      	<span class="glyphicon glyphicon-home"></span>
	      </a>
	    </div>

	    <!-- Collect the nav links, forms, and other content for toggling -->
	    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
	        
	        <ul class="nav navbar-nav">
	        	<%
	        		String username = (String)session.getAttribute("username");
	        		String utype = (String)session.getAttribute("utype");
	        		if (username!=null&&utype.equals("enterprise")) 
	        		{
	        	%>
			        <li><a href="enterpriseAddNews.jsp">新闻发布</a></li>
			        <li><a href="addHireInfo.jsp">招聘信息发布</a></li>
			        <li><a href="#" id="scanApply">应聘人员信息查询</a></li>
			        <!-- <li><a href="#">求职人员管理</a></li> -->
	        	<%
	        		}
	        		else
	        		{
	        	%>
	        			<li><a href="#">您无权限查看功能</a></li>
	        	<%
					}
	        	%>
	      </ul>
	      

	      <ul class="nav navbar-nav navbar-right">
	        <li>
	        	<%
	        		username = (String)session.getAttribute("username");
	        		if (username==null) 
	        		{

	        	%>
	        		<a data-toggle="modal" href="#loginModal">登录</a>
	
	        	<%
	        		}
	        		else
	        		{
	        	%>
	        		<a>欢迎您,<%=username%></a>
	        		</li>
	        		<li>
	        		<a href="#" id="logout">退出</a>
	        	<%
					}
	        	%>
	        </li>
	        
	      </ul>
	    </div><!-- /.navbar-collapse -->
	</div><!-- /.container-fluid -->
</nav>